IF OBJECT_ID('ssf.regex_matches_singleline_4000') IS NOT NULL
	DROP FUNCTION [ssf].[regex_matches_singleline_4000];
GO

CREATE FUNCTION [ssf].[regex_matches_singleline_4000](
	@input NVARCHAR(4000)
	, @pattern NVARCHAR(4000)
)
RETURNS TABLE (
	match_sequence INT
	, match_index INT
	, match_value NVARCHAR(4000)
	, group_sequence INT
	, group_index INT
	, group_value NVARCHAR(4000)
	, capture_sequence INT
	, capture_index INT
	, capture_value NVARCHAR(4000)
)
AS
EXTERNAL NAME [UtilityRegex].[SQLServerFramework.UtilityRegex].[RegexMatchesSingleline4000]
GO
